<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购买机票</title>
</head>
<body>


<script>

    var p = prompt("请输入月份");
    if (p < 10 && p > 5){
        var t = prompt("(旺季)请输入头等舱还是经济舱");
        if (t == "头等舱"){
            console.log("2000");
        }else{
            console.log("800");
        }
    }else{
        var j = prompt("(淡季)请输入头等舱还是经济舱");
        if (j == "头等舱"){
            console.log("800");
        }else{
            console.log("200");
        }
    }

</script>


</body>
</html>